package main

import (
	"github.com/sirupsen/logrus"
	"github.com/xuelang-group/sh-solver-scheduler/internal/infra"
	"github.com/xuelang-group/sh-solver-scheduler/internal/server"
)

func main() {
	infra.InitConfig("config/config.yaml")
	s, err := server.New()
	if err != nil {
		logrus.Fatalf("Init server failed: %v", err)
	}

	if err := s.Run(); err != nil {
		logrus.Fatalf("Run server failed: %v", err)
	}
}
